﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form2 : Form
    {
        private object userName;

        public Form2()
        {
            InitializeComponent();
        }



        private readonly Dictionary<string, string> _user = new Dictionary<string, string>();

        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            var UName = "admin";
            var PWord = "1111";


            var uid = this.UName.Text;
            var pwd = this.PWord.Text;

            if (UName == uid && PWord == pwd)
            {
                MessageBox.Show("登陆成功", "恭喜",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("登录失败", "抱歉", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
          
        }
    }
}
